import React from 'react';
import PropTypes from 'prop-types';
import { ScrollView, View } from 'react-native';
import { colors } from 'react-native-elements';

class Form extends React.Component {

    static propTypes = {
        children: PropTypes.node.isRequired
    }

    render() {

        const { children } = this.props;

        return (
            <View style={{ backgroundColor: '#f00' }}>
                <ScrollView>
                    {children}
                </ScrollView>
            </View>
        );
    }
}

export default Form;